/**
* 功能描述：基础卡片树组件
* @author jin xiaohang
* @date 2022/9/23 14:23
* @version 1.0
*/
<template>
    <div  class="yw-base-card-tree-layout yw-base-card-tree-style">
        <index></index>
        <div v-if="option.children" class="yw-base-card-tree-first-node-layout yw-base-card-tree-first-node-style">
            <template v-for="item in option.children">
                 <YwBaseCardTree :option="item" ></YwBaseCardTree>
            </template>
        </div>
    </div>

</template>

<script>
import Index from "../Card/index.vue";
export default {
    name: "YwBaseCardTree",
    components: {Index},
    props:{
        option:{
            type:Array,
            default:()=>{
                return{
                    key:"000",
                    children:[{
                        key:"1",
                        label:"0-0",
                        children:[
                            {
                                key:"1-0",
                                label:"0-0-0",
                                children:[
                                    {
                                        key:"1-0-0",
                                        label:"0-0-0-0",
                                    },
                                    {
                                        key:"1-0-1",
                                        label:"0-0-0-1",
                                    }
                                ]
                            },
                            {
                                key:"1-1",
                                label:"0-0-1",
                            }
                        ]
                    }]
                }

            }
        }
    },

    data(){
        return{
            controller:null,
    }
    }
}
</script>

<style scoped>

</style>